package com.wxb.mybatis.controller;

import com.wxb.mybatis.service.DictService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * describe:
 *
 * @author : 王校兵
 * @version : v1.0
 * @time : 2017-12-03 20:44
 */
@RestController
public class HelloController {

    @Autowired
    private DictService dictService;

    @GetMapping("/hello")
    public String getValue(String key) {
        return dictService.selectByKey();
    }


}
